const checkRequest = require("../utils/arg-handler");

const momentRequest = async (ctx, next) => {
	// 校验规则
	const rules = [{ field: "content", type: "string" }];

	const isErr = await checkRequest(ctx, rules);
	!isErr && (await next());
};

module.exports = momentRequest;
